xenctx: only alloc symbol if we are inserting it into the symbol table
authorMatthew Daley <mattjd@gmail.com>
Wed, 30 Oct 2013 07:52:02 +0000 (20:52 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:55:53 +0000 (21:55 +0000)
commit33d3716dc0fd3a2db96e0504f51181b6a58f2fbc
tree4a90adca30c9479e59dc1dfb64ff1b0a8c56cf2b
parentf2f06a2f1b42d27dccf08d8ff887c96608b8c6b7
xenctx: only alloc symbol if we are inserting it into the symbol table

...otherwise it's pointless, and will leak.

Coverity-ID: 1055936
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xentrace/xenctx.c